<template>
    <!-- 商品分类导航 -->
    <div class="type-nav">
        <div class="container">
            <h2 class="all">全部房屋位置</h2>
            <nav class="nav">

            </nav>
            <div class="sort">
                <div class="all-sort-list2">
                    <div class="item">
                        <h3>
                            <a href="/search/北京市">北京市</a>
                        </h3>
                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/天津市">天津市</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/河北省">河北省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/山西省">山西省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/内蒙古自治区">内蒙古自治区</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/辽宁省">辽宁省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/吉林省">吉林省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/黑龙江省">黑龙江省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/上海市">上海市</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/江苏省">江苏省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/浙江省">浙江省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/安徽省">安徽省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/福建省">福建省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/江西省">江西省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/山东省">山东省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/河南省">河南省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/湖北省">湖北省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/湖南省">湖南省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/广东省">广东省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/广西壮族自治区">广西壮族自治区</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/海南省">海南省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/山西省">重庆市</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/四川省">四川省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/贵州省">贵州省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/云南省">云南省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/西藏自治区">西藏自治区</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/陕西省">陕西省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/甘肃省">甘肃省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/青海省">青海省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/宁夏回族自治区">宁夏回族自治区</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/新疆维吾尔自治区">新疆维吾尔自治区</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/台湾省">台湾省</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/香港特别行政区">香港特别行政区</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/澳门特别行政区">澳门特别行政区</a>
                        </h3>

                    </div>
                    <div class="item">
                        <h3>
                            <a href="/search/海外">海外</a>
                        </h3>

                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "TypeNav",

    }
</script>

<style scoped lang="less">
    .type-nav {
        border-bottom: 2px solid #e1251b;

        .container {
            width: 1200px;
            margin: 0 auto;
            display: flex;
            position: relative;

            .all {
                width: 210px;
                height: 45px;
                background-color: #e1251b;
                line-height: 45px;
                text-align: center;
                color: #fff;
                font-size: 14px;
                font-weight: bold;
            }

            .nav {
                a {
                    height: 45px;
                    margin: 0 22px;
                    line-height: 45px;
                    font-size: 16px;
                    color: #333;
                }
            }

            .sort {
                position: absolute;
                left: 0;
                top: 45px;
                width: 210px;
                height: 461px;
                position: absolute;
                background: #fafafa;
                z-index: 999;

                .all-sort-list2 {
                    height: 461px;
                    position: absolute;
                    overflow-x:scroll;
                    .item {
                        h3 {
                            line-height: 30px;
                            font-size: 14px;
                            font-weight: 400;
                            overflow: hidden;
                            padding: 0 20px;
                            margin: 0;

                            a {
                                color: #333;
                            }
                        }

                        .item-list {
                            display: none;
                            position: absolute;
                            width: 734px;
                            min-height: 460px;
                            background: #f7f7f7;
                            left: 210px;
                            border: 1px solid #ddd;
                            top: 0;
                            z-index: 9999 !important;

                            .subitem {
                                float: left;
                                width: 650px;
                                padding: 0 4px 0 8px;

                                dl {
                                    border-top: 1px solid #eee;
                                    padding: 6px 0;
                                    overflow: hidden;
                                    zoom: 1;

                                    &.fore {
                                        border-top: 0;
                                    }

                                    dt {
                                        float: left;
                                        width: 54px;
                                        line-height: 22px;
                                        text-align: right;
                                        padding: 3px 6px 0 0;
                                        font-weight: 700;
                                    }

                                    dd {
                                        float: left;
                                        width: 415px;
                                        padding: 3px 0 0;
                                        overflow: hidden;

                                        em {
                                            float: left;
                                            height: 14px;
                                            line-height: 14px;
                                            padding: 0 8px;
                                            margin-top: 5px;
                                            border-left: 1px solid #ccc;
                                        }
                                    }
                                }
                            }
                        }

                        &:hover {
                            .item-list {
                                display: block;
                            }
                        }
                    }
                }
            }
        }
    }
</style>
